home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / machserver / 1.098 / timer / sun4c.md / timerMK48T12Int.h < prev    next >
C/C++ Source or Header  |  1990-09-06  |  1KB  |  44 lines

  1. /*
  2.  * timerMK48T12Int.h --
  3.  *
  4.  *    Declarations of Mostek MK48T12-15 Zeropower/Timekeeper NVRAM and
  5.  *    time of day clock.  
  6.  *
  7.  * Copyright 1989 Regents of the University of California
  8.  * Permission to use, copy, modify, and distribute this
  9.  * software and its documentation for any purpose and without
  10.  * fee is hereby granted, provided that the above copyright
  11.  * notice appear in all copies.  The University of California
  12.  * makes no representations about the suitability of this
  13.  * software for any purpose.  It is provided "as is" without
  14.  * express or implied warranty.
  15.  *
  16.  * $Header: /sprite/src/kernel/timer/sun4c.md/RCS/timerMK48T12Int.h,v 1.1 90/09/04 23:39:13 jhh Exp $ SPRITE (Berkeley)
  17.  */
  18.  
  19. #ifndef _TIMERMK48T12INT
  20. #define _TIMERMK48T12INT
  21.  
  22. /* constants */
  23.  
  24. /* data structures */
  25.  
  26. typedef struct TimerRegs  {
  27.     unsigned char control; /* TOD chip control registers. Defined below. */
  28.     unsigned char second; /* TOD second of minute 0 to 59. */
  29.     unsigned char minutes; /* TOD minute of hour 0 to 59. */
  30.     unsigned char hour;   /* TOD hour of day 0 to 23. */
  31.     unsigned char day;    /* TOD day of month 1 to 31. */
  32.     unsigned char month; /* TOD month of year 1 to 12. */
  33.     unsigned char year;  /* TOD year 0 to 99. */
  34.  
  35. } TimerRegs;
  36.  
  37.  
  38. #define    TOD_WRITE_CTRL    0x80    /* Write TOD registers. */
  39. #define    TOD_READ_CTRL    0x40    /* Read TOD registers. */
  40. #define    TOD_SIGN_CTRL    0x20    /* Sign control. */
  41.  
  42. #endif /* _TIMERMK48T12INT */
  43.  
  44.